<template>
	<div>CSS页面</div>
</template>

<script>
	export default {
		name: 'Css',
		//进入组件前调用
		beforeRouteEnter(to, from, next) {
			console.log("beforeRouteEnter");
			console.log(to);
			console.log(from);
			next();
		},
		//离开组件时调用
		beforeRouteLeave(to, from, next) {
			console.log("beforeRouteLeave");
			console.log(to);
			console.log(from);
			next();
		},
	}
</script>

<style scoped>
	div {
		background-color: green;
	}
</style>
